﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExpressionEvaluator.Expceptions
{
	/// <summary>
	/// Exception raised on creating of expression tree from internal tree.
	/// </summary>
	public class EvalException : BaseException
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="GenerateTreeException"/> class.
		/// </summary>
		/// <param name="message">The message.</param>
		/// <param name="codeBlock">The code block.</param>
		public EvalException(string message, CodeBlock codeBlock)
			: base(message, codeBlock)
		{
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="GenerateTreeException"/> class.
		/// </summary>
		/// <param name="message">The message.</param>
		/// <param name="codeBlock">The code block.</param>
		/// <param name="innerException">The inner exception.</param>
		public EvalException(string message, CodeBlock codeBlock, Exception innerException)
			: base(message, codeBlock, innerException)
		{
		}
	}
}
